import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconVue from '@element-plus/icons-vue'

// 导出一个Vue 3插件对象
export default {
  install: function(app) {
    app.use(ElementPlus)
    // 在install方法中注册所有Element Plus图标组件
    for (const[key,component] of Object.entries(ElementPlusIconVue)){
      app.component(key, component)
    }
  }
}